package cn.shuo.app.controller;

import cn.niter.forum.service.UserService;
import cn.shuo.app.core.annotation.UserLoginToken;
import cn.shuo.app.service.ATokenService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/app/api")
public class AUserController {

    @Autowired
    UserService userService;
    @Autowired
    ATokenService tokenService;


    /*测试token  不登录没有token*/
    @UserLoginToken
    @GetMapping("/getMessage")
    public String getMessage() {
        return "你已通过验证";
    }
}